<?php

namespace app\admin\controller;

use app\admin\service\AdEquipService;

class AdEquip extends Backend
{
    public function initialize()
    {
        parent::initialize();
        $this->service = new AdEquipService;
    }

    public function getAd()
    {
        $res = $this->service->getResourceByAdminId($this->userId);

        $this->jsonReturn(
            [
                'msg'   => 'success',
                'code'  => 0,
                'data'  => $res
            ]
        );
    }
}